jQuery(function(){
	jQuery("a.goal_widget").click(function(){
		var $this = jQuery(this);
		var id = $this.attr("rel");
		GoalManager.doGoal(id, function(result) {
			location.reload();
		});
	});
});